<h1>Listing checkouts</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Checkout</th>
    <th>Checkin</th>
    <th>Address</th>
    <th>City</th>
    <th>State</th>
    <th>Phone</th>
    <th>Zip</th>
    <th>Will be</th>
    <th>Will be comments</th>
    <th>Have</th>
    <th>Have other</th>
    <th>Will</th>
    <th>Children living with</th>
    <th>Notarized on</th>
  </tr>
  
<% for checkout in @checkouts %>
  <tr>
    <td><%=h checkout.name %></td>
    <td><%=h checkout.checkout %></td>
    <td><%=h checkout.checkin %></td>
    <td><%=h checkout.address %></td>
    <td><%=h checkout.city %></td>
    <td><%=h checkout.state %></td>
    <td><%=h checkout.phone %></td>
    <td><%=h checkout.zip %></td>
    <td><%=h checkout.will_be %></td>
    <td><%=h checkout.will_be_comments %></td>
    <td><%=h checkout.have %></td>
    <td><%=h checkout.have_other %></td>
    <td><%=h checkout.will %></td>
    <td><%=h checkout.children_living_with %></td>
    <td><%=h checkout.notarized_on %></td>
    <td><%= link_to 'Show', checkout_path(checkout) %></td>
    <td><%= link_to 'Edit', edit_checkout_path(checkout) %></td>
    <td><%= link_to 'Destroy', checkout_path(checkout), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New checkout', new_checkout_path %>